package com.itheima.springbootmybatis.service.impl;

import com.itheima.springbootmybatis.dao.UserMapper;
import com.itheima.springbootmybatis.pojo.User;
import com.itheima.springbootmybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：sean
 * @date ：Created in 2021/4/8
 * @description ：
 * @version: 1.0
 */
@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserMapper userMapper;

	@Override
	public List<User> findAll() {
		return userMapper.selectAll();
	}
}
